import http from '@/service/http'
import type { IGetProjectParams, IEditProjectParams, IPublishProjectParams } from './types'

const ProjectApi = {
  getProjectList() {
    return http.get('/api/web/admin/list')
  },
  publishProject(params: IPublishProjectParams) {
    return http.post('/api/web/admin/publish', params)
  },
  editProject(params: IEditProjectParams) {
    return http.post('/api/web/admin/editProject', params)
  }
}

export default ProjectApi
